#ifndef M_PENULOAD_H
#define M_PENULOAD_H
#include <stdint.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/types.h>
#include <linux/spi/spidev.h>

#ifndef SPI_NO_CS
#define SPI_CS_HIGH		0x04
#define SPI_LSB_FIRST		0x08
#define SPI_3WIRE		0x10
#define SPI_LOOP		0x20
#define SPI_NO_CS		0x40
#define SPI_READY		0x80
#endif
extern int is_my_SPI_open();
extern void my_SPI_Init();
extern void my_SPI_Load_pneuDSP();
extern int my_SPI_Load_pneuFPGA();
extern void my_SPI_DeInit();
extern void InitializeOnchipQSM();
extern void my_SPI_write(char* buffer, size_t length);
extern void my_SPI_read(char* buffer, size_t length);
extern void my_SPI_setWR(unsigned char WRflag);

#endif
